package com.woniuxy.base.service.impl;

import com.woniuxy.base.mapper.BaseMapper;
import com.woniuxy.base.model.vo.BaseVO;
import com.woniuxy.base.service.BaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BaseServiceImpl implements BaseService {
    @Resource
    private BaseMapper baseMapper;
    @Override
    public BaseVO allBase() {
        BaseVO baseVO = new BaseVO();
        baseVO.setMaterials(baseMapper.getMaterials());
        baseVO.setAreas(baseMapper.getAreas());
        baseVO.setCategories(baseMapper.getCategory());
        return baseVO;
    }
}
